/* 
 * Copyright TLR Team, Inc. All Rights Reserved.
 */
function cover_OtherPresentPeople()
{
    this.name = "";
    this.relationship = "";
}
function COVERPAGE() {
    this.name = "";
    this.date = new Date().format("yyyy-MM-dd");
    this.completedby = "";
    this.completeddate = new Date().format("yyyy-MM-dd");
    this.otherPresentPeople = new Array();
    var one = new cover_OtherPresentPeople();
    this.otherPresentPeople.push(one);
    this.otherPresentPeople.push(new cover_OtherPresentPeople());
    this.otherPresentPeople.push(new cover_OtherPresentPeople());
    this.otherPresentPeople.push(new cover_OtherPresentPeople());
}
function Personalinformation_Nok() {
    this.name = "";
    this.tel = "";
    this.relationship = "";
    this.email = "";
    this.address = "";
}
function Personalinformation_LPA() {
    this.name = "";
    this.tel = "";
    this.relationship = "";
}
function PersonalInformation_OtherContacts() {
    this.name = "";
    this.tel = "";
    this.relationship = "";
}
function PersonalInformation_Professionals() {
    this.name = "";
    this.tel = "";
    this.address = "";
    this.type = 0;
}
function PersonalInformationPage() {
    this.name = "";
    this.id = "";
    this.title = "";
    this.address = "";
    this.tel = "";
    this.dob = new Date().format("yyyy-MM-dd");
    this.hino = "";
    this.email = "";
    this.nok = new Personalinformation_Nok();
    this.lpa = new Personalinformation_LPA();
    this.otherContacts = [];
    this.otherContacts.push(new PersonalInformation_OtherContacts());
    this.professionals = [];
    this.professionals.push(new PersonalInformation_Professionals());
    this.professionals.push(new PersonalInformation_Professionals());
    this.professionals.push(new PersonalInformation_Professionals());
    this.professionals.push(new PersonalInformation_Professionals());
    this.professionals.push(new PersonalInformation_Professionals());
}
function ChoiceAndControlPage() {
    this.myview = -1;
    this.assessorview = -1;
    this.agreeddecision = -1;
    this.attorneyHaveornot = -1;
    this.attorneyAttorneytype = -1;
    this.attorneyOthertype = "";
    this.attorneyRegistered = -1;
    this.notes = "";
}
function CommunicationPage() {
    this.myview = -1;
    this.assessorview = -1;
    this.agreeddecision = -1;
    this.method_0 =false; 
    this.method_1 =false; 
    this.method_2 =false; 
    this.method_3 =false; 
    this.method_4 =false; 
    this.method_5 =false; 
    this.method_6 =false; 
    this.method_7 =false; 
    this.method_8 =false; 
    this.method_9 =false ;
    this.method_10=false; 
    this.method_11=false; 
    this.method_12=false; 
    this.method_13=false ;

    this.register = -1;
    this.detail = "";
    this.notes = "";
}

function PersonalCarePage() {
    this.myview = -1;
    this.assessorview = -1;
    this.agreeddecision = -1;
    this.assist = "";
    this.notes = "";
}
function NutritionHydrationPage() {
    this.myview = -1;
    this.assessorview = -1;
    this.agreeddecision = -1;
    this.notes = "";
}
function MedicalHealthPage() {
    this.myview = -1;
    this.assessorview = -1;
    this.agreeddecision = -1;
    this.notes = "";
}
function Medication_Risk_DrugReaction_PotentialHazard() {
    this.assessmentId = "";
    this.item = 0;
    this.risk = "";
    this.control = "";
}
function Medication_Risk_DrugReaction() {
    this.potentialHazard = new Array();
    this.potentialHazard.push(new Medication_Risk_DrugReaction_PotentialHazard());
    this.potentialHazard.push(new Medication_Risk_DrugReaction_PotentialHazard());
    this.potentialHazard.push(new Medication_Risk_DrugReaction_PotentialHazard());
    this.potentialHazard.push(new Medication_Risk_DrugReaction_PotentialHazard());
    this.potentialHazard.push(new Medication_Risk_DrugReaction_PotentialHazard());
    this.userUsed0 = false;
    this.userUsed1 = false;
    this.userUsed2 = false;
    this.involved0 = false;
    this.involved1 = false;
    this.involved2 = false;
    this.assessmentLevel = -1;
}
function Medication_Risk() {
    this.lackcapacity = -1;
    this.bestinterestdecisions = -1;
    this.nogiven = -1;
    this.visualimpairment = -1;
    this.inhibitread = -1;
    this.allergie = -1;
    this.allergiedetail = "";
    this.drugReaction = new Medication_Risk_DrugReaction();
}
function Medication_MedicationList_Data() {
    this.assessmentId = "";
    this.name = "";
    this.dose = "";
    this.contraindication = "";
}
function Medication_MedicationList() {
    this.name = "";
    this.date = new Date().format("yyyy-MM-dd");
    this.lstdata = [];
    this.lstdata.push(new Medication_MedicationList_Data());
    this.lstdata.push(new Medication_MedicationList_Data());
    this.lstdata.push(new Medication_MedicationList_Data());
    this.lstdata.push(new Medication_MedicationList_Data());
    this.lstdata.push(new Medication_MedicationList_Data());
}

function Medication_HomeRemedyRecord_item() {
    this.assessmentId = "";
    this.remedyTime = new Date().format("yyyy-MM-dd hh:mm:ss");
    this.name = "";
    this.medication = "";
    this.dose = "";
    this.reason = "";
}
function Medication_HomeRemedyRecord() {
    this.service_name = "";
    this.allergies_item = "";
    this.allergies_data = [];
    this.allergies_data.push(new Medication_HomeRemedyRecord_item());
    this.allergies_data.push(new Medication_HomeRemedyRecord_item());
    this.allergies_data.push(new Medication_HomeRemedyRecord_item());
    this.allergies_data.push(new Medication_HomeRemedyRecord_item());
    this.allergies_data.push(new Medication_HomeRemedyRecord_item());
    this.name = "";
    this.option = 0;
    this.signature = "";
    this.signdate = new Date().format("yyyy-MM-dd");
    this.assessor = "";
    this.date = new Date().format("yyyy-MM-dd");
    this.agentsign = "";
    this.agentsigndate = new Date().format("yyyy-MM-dd");
    this.relationship = "";
}
function MedicationPage() {
    this.risk = new Medication_Risk();
    this.medicationList = new Medication_MedicationList();
    this.homeRemedyRecord = new Medication_HomeRemedyRecord();
}
function KeepSafe_Page() {
    this.myview = -1;
    this.assessorview = -1;
    this.agreeddecision = -1;
    this.notes = "";
}
function RiskAssessMentPage() {
    this.premises = -1;
    this.moving = -1;
    this.falls = -1;
    this.medication = -1;
    this.choking = -1;
    this.other = -1;
    this.must = -1;
    this.waterlow = -1;
}
function AdvancedCarePlanPage() {
    this.comfortabletocomplete = -1;
    this.refusetreatment = -1;
    this.havewishe = -1;
    this.where = "";
    this.declarewill = -1;
    this.easytolocate = -1;
    this.haveattorney = -1;
    this.funeralplan = -1;
    this.consideradocument = -1;
    this.notes = "";
}
function SocialCulturalLeisurePage() {
    this.myview = -1;
    this.assessorview = -1;
    this.agreeddecision = -1;
    this.notes = "";
}
function CarersUnpaidSupportPage() {
    this.myview = -1;
    this.assessorview = -1;
    this.agreeddecision = -1;
    this.notes = "";
}
function LearningWorkPage() {
    this.myview = -1;
    this.assessorview = -1;
    this.agreeddecision = -1;
    this.notes = "";
}
function BeParentPage() {
    this.myview = -1;
    this.assessorview = -1;
    this.agreeddecision = -1;
    this.notes = "";
}
function SignaturePage() {
    this.name = "";
    this.signature = "";
    this.signdate = new Date().format("yyyy-MM-dd");
    this.behalfname = "";
    this.behalfSignature = "";
    this.behalfsigndate = new Date().format("yyyy-MM-dd");
    this.assessorname = "";
    this.assessorSignature = "";
    this.assessorsigndate = new Date().format("yyyy-MM-dd");
    
    this.bodymapcustname="";
    this.bodymapSignature = "";
    this.bodymapservicetime= new Date().format("yyyy-MM-dd");
}
function Assessment() {
    this.id = "";
    this.language = "zh";
    this.status = 0;
    this.lastmodify = new Date();
    this.cover = new COVERPAGE();
    this.personalInformation = new PersonalInformationPage();
    this.choiceAndControl = new ChoiceAndControlPage();
    this.communication = new CommunicationPage();
    this.personalCare = new PersonalCarePage();
    this.nutritionHydration = new NutritionHydrationPage();
    this.medicalHealth = new MedicalHealthPage();
    this.medication = new MedicationPage();
    this.keepSafe = new KeepSafe_Page();
    this.riskAssessMent = new RiskAssessMentPage();
    this.advancedCarePlan = new AdvancedCarePlanPage();
    this.socialCulturalLeisure = new SocialCulturalLeisurePage();
    this.carersUnpaidSupport = new CarersUnpaidSupportPage();
    this.learningWork = new LearningWorkPage();
    this.beParent = new BeParentPage();
    this.signature = new SignaturePage();
}

function UserInfo() {
    this.id = "";
    this.name = "";
    this.nickname = "";
    this.sex = 0;
    this.age = 0;
    this.mobileCode = "";
    this.address = "";
    this.tel = "";
    this.dob = new Date().format("yyyy-MM-dd");
    this.email = "";
    this.hino = "";
    this.type = 1;
    this.keyword = "";
    this.qq = "";
    this.webchat = "";
    this.othercontactName = "";
    this.othercontactRelation = "";
    this.othercontactTel = "";
    this.school = "";
    this.personalsign = "";
    this.hobit = "";
    this.password = "";
    this.status = 1;
    this.lastmodify = new Date();
    this.header = "";
    this.position="";
    this.employeeid="";
    this.employeetype=0;
    this.policyread=0;
}
function uploadinfo() {
    this.newname = "";
    this.curindex = 0;
    this.oldnames=[];
    this.oldnames.push("");
    this.oldnames.push("");
    this.oldnames.push("");
    this.oldnames.push("");
    this.oldnames.push("");
    
    this.oldnames.push("");
    this.oldnames.push("");
    this.oldnames.push("");
    this.oldnames.push("");
    this.oldnames.push("");
    this.oldnames.push("");
    this.oldnames.push("");
    this.newnames =[];
    this.newnames.push("");
    this.newnames.push("");
    this.newnames.push("");
    this.newnames.push("");
    this.newnames.push("");
    this.newnames.push("");
    this.newnames.push("");
    this.newnames.push("");
    this.newnames.push("");
    this.newnames.push("");
    this.newnames.push("");
    
}
